import request from '@/request/index.js'
import {
	data
} from '../../uni_modules/uview-ui/libs/mixin/mixin';



export function add(data) {
	return request.post({
		url: "/api/user/insertAddress",
		data
	});
}
export function list3() {
	return request.post({
		url: "/api/user/ourAddress",
	});
}
export function update(data) {
	return request.post({
		url: "/api/user/editAddress",
		data
	});
}
export function changeAddressDefault(data) {
	return request.post({
		url: "/api/user/changeAddressDefault",
		data
	});
}
export function del(id) {
	return request.post({
		url: `/api/user/deleteAddress?id=${id}`,
		data: {
			id
		}
	});
}